import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
console.log(store.state);
// 引入公共样式
import "./assets/css/reset.css"
// 引入全局公共组件
import comComponents from "./components"
for (let i in comComponents) {
  Vue.component(i, comComponents[i])
}
//引入全局过滤器
import comFilters from "./filters"
for (let i in comFilters) {
  Vue.filter(i, comFilters[i])
}
// 引入element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

Vue.prototype.event=new Vue();
Vue.prototype.$pregImg="http://localhost:3000"
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
